<?php

use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model yak\layui\models\Menu */

?>

<div class="menu-view view-block">

    <?= DetailView::widget([
        'model' => $model,
        'options' => ['class' => 'layui-table'],
        'attributes' => [
            'id',
            'pid',
            'title',
            [
                'attribute' => 'created_at',
                'value' => function ($model) {
                    return "AAAAA";
                }
            ]
        ],
    ]) ?>


</div>
